/**
 * 房间中玩家数据显示框
 * 
 * @author LuoDong
 * @email luo4521@online.net.tw
 * 2010-2-7 17:03
 */
package com.addcn.texas.view.components
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.text.*;
	
	public class  UserInfoBox extends MovieClip
	{
		private var _my_id : int
		
		public function UserInfoBox() : void
		{
			this["UserStatus"].visible = false;
		}
		
		public function set userId(r_int : int) : void
		{
			this._my_id = r_int;			
		}
		
		public function get userId() : int
		{
			return this._my_id;
		}
				
		public function set userName(r_name : String) : void
		{
			this["UserName"].text = String(r_name);			
		}
		
		public function set userMoney(r_data : String) : void
		{
			this["UserChip"]["TextObj"].text = "$"+String(r_data);
		}
		
		public function showStatus(r_info : String) : void
		{
			this["UserStatus"].visible = true;
			this["UserStatus"]["TextObj"].text = r_info;
		}
		
		public function hideStatus() : void
		{
			this["UserStatus"].visible = false;
			this["UserStatus"]["TextObj"].text = "";
		}
		
		public function getPhotoBox() : MovieClip
		{
			return this['pic'];
		}
		
		public function set userPhoto(r_obj : Object) : void
		{
			if(r_obj != null){
				this["pic"].addChild(r_obj);
			}
			
		}
		
		
	}
	
}
